package Day33;

public class Animal {
    private String name;

    public Animal(String name) {
        this.name = name;
    }

    public Animal() {
    }
    public void move(){

    }
}

class Cat extends Animal{
    public Cat(String name) {
        super(name);
    }

    public Cat() {
    }
    @Override
    public void move(){
        System.out.println("猫仔在移动呢");
    }
}


class Dog extends Animal{
    public Dog(String name) {
        super(name);
    }

    public Dog(){

    }
    @Override
    public void move(){
        System.out.println("狗子正在移动");
    }
}
